<template>
  <div class="content">
    <div class="title">实付金额（元）</div>
    <div class="title title2">5.00</div>
    <div class="info">
      <div class="item">
        <div class="label">订单金额</div>
        <div>{{info.val}}</div>
      </div>
      <div class="item">
        <div class="label">支付方式</div>
        <div>{{info.val}}</div>
      </div>
      <div class="item">
        <div class="label">商户名称</div>
        <div>{{info.val}}</div>
      </div>
      <div class="item">
        <div class="label">交易状态</div>
        <div>{{info.val}}</div>
      </div>
      <div class="item">
        <div class="label">进站信息</div>
        <div>{{info.in_station_nam}}</div>
      </div>
      <div class="item">
        <div class="label">出站信息</div>
        <div>{{info.val}}</div>
      </div>
      <div class="item">
        <div class="label">交易时间</div>
        <div>
          {{info.val}}
          <span>延时扣费</span>
        </div>
      </div>
      <div class="item">
        <div class="label">交易流水号</div>
        <div>{{info.val}}</div>
      </div>
      <div class="item">
        <div class="label">商户订单号</div>
        <div>{{info.val}}</div>
      </div>
      <div class="item">
        <div class="label"></div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "orderDetail",
  data() {
    return {
      info: {
        val: "南京银行"
      }
    };
  },
  created() {
    let tripVals = this.$route.params.tripVal;
    localStorage.setItem("trip_no", tripVals);

    // this.GetDetail();
  },
  mounted() {
    let _this = this;
    let datas = {
      in_station_nam: "钟灵街"
    };
    _this.$set(_this.list, datas);
  },
  watch: {

    },
  methods: {
    GetDetail() {
      let data = {
        trip_no: localStorage.getItem("trip_no")
      };
      this.$http
        .post("https://m.mynj.cn:11005/metro/trip/queryTripDetail", data)
        .then(res => {
          let datas = res.data.data;
          this.$set(this.list, datas);
          // this.list = res.data.data;
        });
    }
  }
};
</script>

<style lang="scss" scoped>
.content {
  height: 100vh;
  background-image: linear-gradient(137deg, #318bff 0%, #1876ff 100%);
  background-repeat: no-repeat;
  background-size: 100% 275px;
  padding: 20px 16px;
  font-family: PingFangSC-Medium, PingFang SC;
  .title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    margin: 5px 0;
    &.title2 {
      font-size: 35px;
    }
  }
  .info {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 6px;
    padding: 12px 17px;
    box-shadow: 0px 2px 7px 0px rgba(192, 216, 255, 0.29);
    .item {
      display: flex;
      margin: 10px 0;
      font-size: 12px;
      font-weight: 500;
      color: #333;
      div {
        display: flex;
        align-items: center;
        &.label {
          height: 30px;
          line-height: 30px;
          font-weight: 400;
          width: 60px;
          margin-right: 17px;
        }
        span {
          margin-left: 5px;
          background-color: #ff8f10;
          padding: 2px 7px;
          border-radius: 10px;
          color: #fff;
        }
      }
    }
  }
}
</style>